package gamagora.game.world.maps.game
{
	import gamagora.game.entity.*;
	import gamagora.game.world.maps.OSMap;

	public class OSMap7 extends OSMap
	{
		public function OSMap7()
		{
			super();
			
			addBackground(new OSBird(40, 300));
			
			addBackground(new OSBird(100, 300));
			
			addBackground(new OSBird(200, 300));
			
			addBackground(new OSBird(320, 300));
			
			var ground:OSGround = new OSGround(940, 900, 20, 160, 0, false);
			ground.setNoErosionDown([7]);
			ground.erode();
			addBackground(ground);
			
			ground = new OSGround(0, 340, 400, 560, 0, false);
			ground.setNoErosionLeft([0, 20, 40, 60, 80, 100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300, 320, 340, 360, 380, 400, 420, 440, 460, 480, 500, 520, 540]);
			ground.erode();
			add(ground);
			
			for(var i:uint=0;i<10;i++)
			{
				addForeground(new OSPillar(i * 40, 890, 20, 180));
			}
			
			ground = new OSGround(0, 1060, 960, 20, 0, false);
			ground.setNoErosionUp([29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]);
			ground.setNoErosionRight([47]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(580, 420, 380, 640, 0, false);
			ground.setNoErosionDown([589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607]);
			ground.setNoErosionRight([18, 151]);
			ground.erode();
			add(ground);
		}
	}
}
